.class public Lcom/estrongs/fs/impl/usb/e;
.super Ljava/lang/Object;
.source "UsbFileSystem.java"


# static fields
.field private static final a:Ljava/lang/String; = "e"

.field private static b:[Lcom/estrongs/fs/impl/usb/f;

.field private static c:Ljava/lang/Object;

.field private static d:Z

.field private static e:Ljava/lang/String;

.field private static f:Les/x80;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    sput-object v0, Lcom/estrongs/fs/impl/usb/e;->c:Ljava/lang/Object;

    .line 2
    new-instance v0, Lcom/estrongs/fs/impl/usb/e$a;

    invoke-direct {v0}, Lcom/estrongs/fs/impl/usb/e$a;-><init>()V

    sput-object v0, Lcom/estrongs/fs/impl/usb/e;->f:Les/x80;

    .line 3
    invoke-static {v0}, Les/s80;->a(Les/x80;)V

    return-void
.end method

.method public static a(Landroid/hardware/usb/UsbDevice;)Lcom/estrongs/fs/impl/usb/f;
    .locals 8

    .line 11
    sget-object v0, Lcom/estrongs/fs/impl/usb/e;->c:Ljava/lang/Object;

    monitor-enter v0

    .line 12
    :try_start_0
    sget-object v1, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    if-eqz v1, :cond_1

    .line 13
    sget-object v1, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    array-length v2, v1

    const/4 v3, 0x0

    :goto_0
    if-ge v3, v2, :cond_1

    aget-object v4, v1, v3

    .line 14
    invoke-virtual {v4}, Lcom/estrongs/fs/impl/usb/f;->b()Ljava/lang/String;

    move-result-object v5

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Landroid/hardware/usb/UsbDevice;->getDeviceId()I

    move-result v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v7, ""

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_0

    .line 15
    monitor-exit v0

    return-object v4

    :cond_0
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_1
    const/4 p0, 0x0

    .line 16
    monitor-exit v0

    return-object p0

    :catchall_0
    move-exception p0

    .line 17
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_2

    :goto_1
    throw p0

    :goto_2
    goto :goto_1
.end method

.method public static a(Ljava/lang/String;J)Ljava/io/InputStream;
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 62
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object v1

    .line 63
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v2

    if-nez v1, :cond_1

    if-eqz v2, :cond_0

    const/4 p1, 0x2

    .line 64
    new-instance p2, Les/u80$a;

    invoke-direct {p2, p0, v0}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    invoke-virtual {v2, p1, p2}, Les/s80;->b(ILjava/lang/Object;)V

    :cond_0
    return-object v0

    .line 65
    :cond_1
    invoke-interface {v1}, Les/e50;->getLength()J

    move-result-wide v3

    cmp-long p0, p1, v3

    if-lez p0, :cond_3

    if-eqz v2, :cond_2

    const/16 p0, 0xa

    .line 66
    new-instance p1, Les/u80$a;

    const-string p2, "offset > filesize"

    invoke-direct {p1, p2, v0}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    invoke-virtual {v2, p0, p1}, Les/s80;->b(ILjava/lang/Object;)V

    :cond_2
    return-object v0

    .line 67
    :cond_3
    new-instance p0, Lcom/estrongs/fs/impl/usb/b;

    invoke-direct {p0, v1, p1, p2}, Lcom/estrongs/fs/impl/usb/b;-><init>(Les/e50;J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :catch_0
    return-object v0
.end method

.method public static a(Lcom/estrongs/fs/l;)Ljava/util/ArrayList;
    .locals 8
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/estrongs/fs/l;",
            ")",
            "Ljava/util/ArrayList<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .line 1
    sget-object v0, Lcom/estrongs/fs/impl/usb/e;->c:Ljava/lang/Object;

    monitor-enter v0

    .line 2
    :try_start_0
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 3
    invoke-static {}, Lcom/estrongs/fs/impl/usb/e;->e()Z

    move-result v2

    if-eqz v2, :cond_0

    .line 4
    invoke-static {}, Lcom/estrongs/fs/impl/usb/e;->f()[Lcom/estrongs/fs/impl/usb/f;

    .line 5
    :cond_0
    sget-object v2, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    if-eqz v2, :cond_1

    .line 6
    sget-object v2, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    array-length v3, v2

    const/4 v4, 0x0

    :goto_0
    if-ge v4, v3, :cond_1

    aget-object v5, v2, v4

    .line 7
    new-instance v6, Lcom/estrongs/fs/m;

    invoke-virtual {v5}, Lcom/estrongs/fs/impl/usb/f;->e()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v5}, Lcom/estrongs/fs/impl/usb/f;->c()Ljava/lang/String;

    move-result-object v5

    invoke-direct {v6, v7, p0, v5}, Lcom/estrongs/fs/m;-><init>(Ljava/lang/String;Lcom/estrongs/fs/l;Ljava/lang/String;)V

    .line 8
    invoke-virtual {v1, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    .line 9
    :cond_1
    monitor-exit v0

    return-object v1

    :catchall_0
    move-exception p0

    .line 10
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_2

    :goto_1
    throw p0

    :goto_2
    goto :goto_1
.end method

.method public static a(Ljava/lang/String;Lcom/estrongs/fs/h;)Ljava/util/List;
    .locals 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/estrongs/fs/h;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 22
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    .line 23
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->j(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    .line 24
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->b(Ljava/lang/String;)Lcom/estrongs/fs/impl/usb/f;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/fs/impl/usb/e;->a(Lcom/estrongs/fs/impl/usb/f;)[Les/e50;

    move-result-object v1

    goto :goto_0

    .line 25
    :cond_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object v1

    if-eqz v1, :cond_7

    .line 26
    invoke-interface {v1}, Les/e50;->w()Z

    move-result v3

    if-nez v3, :cond_1

    goto :goto_3

    .line 27
    :cond_1
    invoke-interface {v1}, Les/e50;->y()[Les/e50;

    move-result-object v1

    .line 28
    :goto_0
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v3

    if-eqz v1, :cond_6

    .line 29
    array-length v4, v1

    const/4 v5, 0x0

    :goto_1
    if-ge v5, v4, :cond_6

    aget-object v6, v1, v5

    if-eqz v3, :cond_2

    .line 30
    invoke-virtual {v3}, Les/s80;->z()Z

    move-result v7

    if-eqz v7, :cond_2

    return-object v2

    :cond_2
    if-nez v6, :cond_3

    goto :goto_2

    .line 31
    :cond_3
    invoke-interface {v6}, Les/e50;->getName()Ljava/lang/String;

    move-result-object v7

    if-eqz v7, :cond_5

    invoke-interface {v6}, Les/e50;->getName()Ljava/lang/String;

    move-result-object v7

    const-string v8, "."

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-nez v7, :cond_5

    invoke-interface {v6}, Les/e50;->getName()Ljava/lang/String;

    move-result-object v7

    const-string v8, ".."

    invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_4

    goto :goto_2

    .line 32
    :cond_4
    new-instance v7, Lcom/estrongs/fs/impl/usb/c;

    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-interface {v6}, Les/e50;->getName()Ljava/lang/String;

    move-result-object v9

    invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-direct {v7, v6, v8}, Lcom/estrongs/fs/impl/usb/c;-><init>(Les/e50;Ljava/lang/String;)V

    .line 33
    invoke-interface {p1, v7}, Lcom/estrongs/fs/h;->a(Lcom/estrongs/fs/g;)Z

    move-result v6

    if-eqz v6, :cond_5

    .line 34
    invoke-interface {v0, v7}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_5
    :goto_2
    add-int/lit8 v5, v5, 0x1

    goto :goto_1

    :cond_6
    return-object v0

    :cond_7
    :goto_3
    return-object v2

    :catchall_0
    move-exception p0

    .line 35
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    goto :goto_5

    :goto_4
    throw p1

    :goto_5
    goto :goto_4
.end method

.method public static a(Z)V
    .locals 0

    .line 74
    sput-boolean p0, Lcom/estrongs/fs/impl/usb/e;->d:Z

    return-void
.end method

.method public static a()Z
    .locals 5

    .line 68
    sget-boolean v0, Lcom/estrongs/fs/impl/usb/e;->d:Z

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    return v1

    :cond_0
    const/4 v0, 0x0

    .line 69
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/util/h0;->i()Ljava/util/List;

    move-result-object v2

    if-eqz v2, :cond_3

    .line 70
    invoke-interface {v2}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    const/4 v3, 0x0

    :cond_1
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_2

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/estrongs/android/util/h0$f;

    .line 71
    iget-object v4, v4, Lcom/estrongs/android/util/h0$f;->c:Ljava/lang/String;

    invoke-static {v4}, Lcom/estrongs/android/util/h0;->u2(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 72
    sput-boolean v1, Lcom/estrongs/fs/impl/usb/e;->d:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    const/4 v3, 0x1

    goto :goto_0

    :cond_2
    move v0, v3

    :cond_3
    return v0

    :catch_0
    move-exception v1

    .line 73
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    return v0
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 49
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object p1

    if-nez p1, :cond_0

    const/4 p0, 0x0

    return p0

    .line 50
    :cond_0
    invoke-interface {p1}, Les/e50;->getParent()Les/e50;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 51
    invoke-interface {p1}, Les/e50;->delete()V

    const/4 p0, 0x1

    return p0

    .line 52
    :cond_1
    new-instance p1, Ljava/lang/RuntimeException;

    const v0, 0x7f110774

    invoke-virtual {p0, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p0

    invoke-direct {p1, p0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception p0

    .line 53
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    .line 54
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
.end method

.method public static a(Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 47
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz p0, :cond_0

    const/4 p0, 0x1

    return p0

    :cond_0
    const/4 p0, 0x0

    return p0

    :catchall_0
    move-exception p0

    .line 48
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 55
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 56
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 57
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 58
    invoke-interface {v0, p1}, Les/e50;->b(Les/e50;)V

    const/4 p0, 0x1

    return p0

    .line 59
    :cond_0
    new-instance p1, Ljava/io/FileNotFoundException;

    invoke-direct {p1, p0}, Ljava/io/FileNotFoundException;-><init>(Ljava/lang/String;)V

    throw p1

    .line 60
    :cond_1
    new-instance p1, Ljava/io/FileNotFoundException;

    invoke-direct {p1, p0}, Ljava/io/FileNotFoundException;-><init>(Ljava/lang/String;)V

    throw p1
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception p0

    .line 61
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
.end method

.method public static a(Ljava/lang/String;Z)Z
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 36
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    .line 37
    sget-object p1, Lcom/estrongs/fs/impl/usb/e;->a:Ljava/lang/String;

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Failed to get the path "

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {p0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-static {p1, p0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return v1

    .line 38
    :cond_0
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 39
    invoke-interface {v0}, Les/e50;->x()[Ljava/lang/String;

    move-result-object v2

    .line 40
    array-length v3, v2

    const/4 v4, 0x0

    :goto_0
    if-ge v4, v3, :cond_2

    aget-object v5, v2, v4

    .line 41
    invoke-virtual {v5, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_1

    .line 42
    sget-object p0, Lcom/estrongs/fs/impl/usb/e;->a:Ljava/lang/String;

    const-string p1, "The file exist."

    invoke-static {p0, p1}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return v1

    :cond_1
    add-int/lit8 v4, v4, 0x1

    goto :goto_0

    :cond_2
    if-eqz p1, :cond_3

    .line 43
    invoke-interface {v0, p0}, Les/e50;->createDirectory(Ljava/lang/String;)Les/e50;

    goto :goto_1

    .line 44
    :cond_3
    invoke-interface {v0, p0}, Les/e50;->e(Ljava/lang/String;)Les/e50;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    const/4 p0, 0x1

    return p0

    :catch_0
    move-exception p0

    .line 45
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    .line 46
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    goto :goto_3

    :goto_2
    throw p1

    :goto_3
    goto :goto_2
.end method

.method private static a(Lcom/estrongs/fs/impl/usb/f;)[Les/e50;
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/impl/usb/UsbFsException;
        }
    .end annotation

    if-nez p0, :cond_0

    const/4 p0, 0x0

    return-object p0

    .line 18
    :cond_0
    invoke-virtual {p0}, Lcom/estrongs/fs/impl/usb/f;->d()Ljava/util/List;

    move-result-object p0

    .line 19
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v0

    new-array v0, v0, [Les/e50;

    const/4 v1, 0x0

    .line 20
    :goto_0
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v2

    if-ge v1, v2, :cond_1

    .line 21
    invoke-interface {p0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/h60;

    invoke-virtual {v2}, Les/h60;->b()Les/c50;

    move-result-object v2

    invoke-interface {v2}, Les/c50;->b()Les/e50;

    move-result-object v2

    aput-object v2, v0, v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_1
    return-object v0
.end method

.method public static b(Ljava/lang/String;)Lcom/estrongs/fs/impl/usb/f;
    .locals 4

    const/4 v0, 0x0

    if-eqz p0, :cond_4

    const-string v1, "usb://"

    .line 8
    invoke-virtual {p0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_4

    sget-object v1, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    if-nez v1, :cond_0

    goto :goto_2

    :cond_0
    const/4 v1, 0x6

    .line 9
    invoke-virtual {p0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p0

    const-string v1, "/"

    .line 10
    invoke-virtual {p0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p0

    .line 11
    array-length v1, p0

    const/4 v2, 0x1

    if-ge v1, v2, :cond_1

    return-object v0

    :cond_1
    const/4 v1, 0x0

    .line 12
    aget-object p0, p0, v1

    .line 13
    sget-object v2, Lcom/estrongs/fs/impl/usb/e;->c:Ljava/lang/Object;

    monitor-enter v2

    .line 14
    :try_start_0
    sget-object v3, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    if-eqz v3, :cond_3

    .line 15
    :goto_0
    sget-object v3, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    array-length v3, v3

    if-ge v1, v3, :cond_3

    .line 16
    sget-object v3, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    aget-object v3, v3, v1

    invoke-virtual {v3}, Lcom/estrongs/fs/impl/usb/f;->b()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 17
    sget-object p0, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    aget-object v0, p0, v1

    goto :goto_1

    :cond_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 18
    :cond_3
    :goto_1
    monitor-exit v2

    return-object v0

    :catchall_0
    move-exception p0

    monitor-exit v2
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p0

    :cond_4
    :goto_2
    return-object v0
.end method

.method public static b(Ljava/lang/String;J)Ljava/io/OutputStream;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 26
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object v0

    if-nez v0, :cond_1

    .line 27
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-nez v0, :cond_0

    const/4 p0, 0x0

    return-object p0

    .line 28
    :cond_0
    :try_start_1
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    invoke-interface {v0, p0}, Les/e50;->e(Ljava/lang/String;)Les/e50;

    move-result-object v0
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 29
    :try_start_2
    invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V

    .line 30
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1

    .line 31
    :cond_1
    :goto_0
    new-instance p0, Lcom/estrongs/fs/impl/usb/d;

    invoke-direct {p0, v0, p1, p2}, Lcom/estrongs/fs/impl/usb/d;-><init>(Les/e50;J)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    return-object p0

    :catchall_0
    move-exception p0

    .line 32
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
.end method

.method public static b()V
    .locals 5

    .line 1
    invoke-static {}, Les/s80;->B()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 2
    sget-object v0, Lcom/estrongs/fs/impl/usb/e;->c:Ljava/lang/Object;

    monitor-enter v0

    .line 3
    :try_start_0
    sget-object v1, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    if-eqz v1, :cond_0

    .line 4
    sget-object v1, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    array-length v2, v1

    const/4 v3, 0x0

    :goto_0
    if-ge v3, v2, :cond_0

    aget-object v4, v1, v3

    .line 5
    invoke-virtual {v4}, Lcom/estrongs/fs/impl/usb/f;->a()V

    const/4 v4, 0x0

    .line 6
    sput-object v4, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 7
    :cond_0
    monitor-exit v0

    goto :goto_1

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1

    :cond_1
    :goto_1
    return-void
.end method

.method public static b(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 19
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 20
    invoke-interface {v0}, Les/e50;->getParent()Les/e50;

    move-result-object v1

    if-nez v1, :cond_0

    .line 21
    sget-object p1, Lcom/estrongs/fs/impl/usb/e;->a:Ljava/lang/String;

    const-string v0, "can not rename root dir"

    invoke-static {p1, v0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    const/4 p0, 0x0

    return p0

    .line 22
    :cond_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    invoke-interface {v0, p1}, Les/e50;->setName(Ljava/lang/String;)V

    const/4 p0, 0x1

    return p0

    .line 23
    :cond_1
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    new-instance v0, Ljava/io/FileNotFoundException;

    invoke-direct {v0, p0}, Ljava/io/FileNotFoundException;-><init>(Ljava/lang/String;)V

    invoke-direct {p1, v0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception p0

    .line 24
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1

    .line 25
    :catch_1
    new-instance p1, Lcom/estrongs/fs/FileExistException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileExistException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public static c(Ljava/lang/String;)Les/e50;
    .locals 10
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/impl/usb/UsbFsException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 4
    :try_start_0
    sget-object v1, Lcom/estrongs/fs/impl/usb/e;->c:Ljava/lang/Object;

    monitor-enter v1
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    if-eqz p0, :cond_c

    :try_start_1
    const-string v2, "usb://"

    .line 5
    invoke-virtual {p0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_c

    sget-object v2, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    if-nez v2, :cond_0

    goto/16 :goto_6

    :cond_0
    const/4 v2, 0x6

    .line 6
    invoke-virtual {p0, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p0

    const-string v2, "/"

    .line 7
    invoke-virtual {p0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    .line 8
    array-length v3, v2

    const/4 v4, 0x1

    if-gt v3, v4, :cond_1

    .line 9
    monitor-exit v1

    return-object v0

    :cond_1
    const/4 v3, 0x0

    .line 10
    aget-object v5, v2, v3

    const/4 v6, 0x0

    .line 11
    :goto_0
    sget-object v7, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    array-length v7, v7

    if-ge v6, v7, :cond_3

    .line 12
    sget-object v7, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    aget-object v7, v7, v6

    invoke-virtual {v7}, Lcom/estrongs/fs/impl/usb/f;->b()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v7, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_2

    .line 13
    sget-object v5, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    aget-object v5, v5, v6

    goto :goto_1

    :cond_2
    add-int/lit8 v6, v6, 0x1

    goto :goto_0

    :cond_3
    move-object v5, v0

    :goto_1
    if-nez v5, :cond_4

    .line 14
    monitor-exit v1

    return-object v0

    .line 15
    :cond_4
    aget-object v4, v2, v4

    .line 16
    invoke-virtual {v5}, Lcom/estrongs/fs/impl/usb/f;->d()Ljava/util/List;

    move-result-object v5

    invoke-interface {v5}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :cond_5
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_6

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Les/h60;

    .line 17
    invoke-virtual {v6}, Les/h60;->e()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v4, v7}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_5

    goto :goto_2

    :cond_6
    move-object v6, v0

    :goto_2
    if-eqz v6, :cond_b

    .line 18
    invoke-virtual {v6}, Les/h60;->b()Les/c50;

    move-result-object p0

    invoke-interface {p0}, Les/c50;->b()Les/e50;

    move-result-object p0

    const/4 v4, 0x2

    .line 19
    :goto_3
    array-length v5, v2

    if-ge v4, v5, :cond_a

    .line 20
    invoke-interface {p0}, Les/e50;->y()[Les/e50;

    move-result-object p0

    .line 21
    array-length v5, p0

    const/4 v6, 0x0

    :goto_4
    if-ge v6, v5, :cond_8

    aget-object v7, p0, v6

    .line 22
    invoke-interface {v7}, Les/e50;->getName()Ljava/lang/String;

    move-result-object v8

    aget-object v9, v2, v4

    invoke-virtual {v8, v9}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v8

    if-eqz v8, :cond_7

    move-object p0, v7

    goto :goto_5

    :cond_7
    add-int/lit8 v6, v6, 0x1

    goto :goto_4

    :cond_8
    move-object p0, v0

    :goto_5
    if-nez p0, :cond_9

    .line 23
    monitor-exit v1

    return-object v0

    :cond_9
    add-int/lit8 v4, v4, 0x1

    goto :goto_3

    .line 24
    :cond_a
    monitor-exit v1

    return-object p0

    .line 25
    :cond_b
    sget-object v2, Lcom/estrongs/fs/impl/usb/e;->a:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "getFile file failed to get partion "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-static {v2, p0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 26
    new-instance p0, Ljava/lang/RuntimeException;

    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v2

    const v3, 0x7f110774

    invoke-virtual {v2, v3}, Landroid/app/Application;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v2}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw p0

    .line 27
    :cond_c
    :goto_6
    monitor-exit v1

    return-object v0

    :catchall_0
    move-exception p0

    .line 28
    monitor-exit v1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    :try_start_2
    throw p0
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    :catch_0
    move-exception p0

    .line 29
    invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V

    return-object v0
.end method

.method public static c()[Lcom/estrongs/fs/impl/usb/f;
    .locals 2

    .line 1
    sget-object v0, Lcom/estrongs/fs/impl/usb/e;->c:Ljava/lang/Object;

    monitor-enter v0

    .line 2
    :try_start_0
    sget-object v1, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    monitor-exit v0

    return-object v1

    :catchall_0
    move-exception v1

    .line 3
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method public static d(Ljava/lang/String;)Lcom/estrongs/fs/e;
    .locals 7
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object v0

    if-nez v0, :cond_0

    const/4 p0, 0x0

    return-object p0

    .line 2
    :cond_0
    new-instance v1, Lcom/estrongs/fs/e;

    invoke-direct {v1, p0}, Lcom/estrongs/fs/e;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-interface {v0}, Les/e50;->w()Z

    move-result p0

    iput-boolean p0, v1, Lcom/estrongs/fs/e;->c:Z

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-eqz p0, :cond_2

    .line 4
    invoke-interface {v0}, Les/e50;->y()[Les/e50;

    move-result-object p0

    if-eqz p0, :cond_3

    .line 5
    array-length v4, p0

    const/4 v5, 0x0

    :goto_0
    if-ge v5, v4, :cond_3

    aget-object v6, p0, v5

    .line 6
    invoke-interface {v6}, Les/e50;->w()Z

    move-result v6

    if-eqz v6, :cond_1

    .line 7
    iget v6, v1, Lcom/estrongs/fs/e;->e:I

    add-int/2addr v6, v3

    iput v6, v1, Lcom/estrongs/fs/e;->e:I

    goto :goto_1

    .line 8
    :cond_1
    iget v6, v1, Lcom/estrongs/fs/e;->f:I

    add-int/2addr v6, v3

    iput v6, v1, Lcom/estrongs/fs/e;->f:I

    :goto_1
    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    :cond_2
    const-string p0, "File"

    .line 9
    iput-object p0, v1, Lcom/estrongs/fs/e;->b:Ljava/lang/String;

    .line 10
    invoke-interface {v0}, Les/e50;->getLength()J

    move-result-wide v4

    iput-wide v4, v1, Lcom/estrongs/fs/e;->d:J

    .line 11
    :cond_3
    invoke-interface {v0}, Les/e50;->v()J

    move-result-wide v4

    iput-wide v4, v1, Lcom/estrongs/fs/e;->i:J

    .line 12
    invoke-interface {v0}, Les/e50;->z()J

    move-result-wide v4

    iput-wide v4, v1, Lcom/estrongs/fs/e;->g:J

    .line 13
    iput-boolean v3, v1, Lcom/estrongs/fs/e;->j:Z

    .line 14
    invoke-interface {v0}, Les/e50;->isReadOnly()Z

    move-result p0

    if-nez p0, :cond_4

    const/4 v2, 0x1

    :cond_4
    iput-boolean v2, v1, Lcom/estrongs/fs/e;->k:Z

    .line 15
    invoke-interface {v0}, Les/e50;->isHidden()Z

    move-result p0

    iput-boolean p0, v1, Lcom/estrongs/fs/e;->l:Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object v1

    :catch_0
    move-exception p0

    .line 16
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    goto :goto_3

    :goto_2
    throw v0

    :goto_3
    goto :goto_2
.end method

.method public static d()Ljava/lang/String;
    .locals 3

    .line 17
    sget-object v0, Lcom/estrongs/fs/impl/usb/e;->e:Ljava/lang/String;

    if-nez v0, :cond_1

    .line 18
    invoke-static {}, Lcom/estrongs/android/util/h0;->i()Ljava/util/List;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 19
    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_0
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/util/h0$f;

    .line 20
    iget-object v2, v1, Lcom/estrongs/android/util/h0$f;->c:Ljava/lang/String;

    invoke-static {v2}, Lcom/estrongs/android/util/h0;->u2(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_0

    .line 21
    iget-object v1, v1, Lcom/estrongs/android/util/h0$f;->b:Ljava/lang/String;

    invoke-static {v1}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    sput-object v1, Lcom/estrongs/fs/impl/usb/e;->e:Ljava/lang/String;

    goto :goto_0

    .line 22
    :cond_1
    sget-object v0, Lcom/estrongs/fs/impl/usb/e;->e:Ljava/lang/String;

    return-object v0
.end method

.method public static e(Ljava/lang/String;)J
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 11
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 12
    invoke-interface {v0}, Les/e50;->w()Z

    move-result p0

    if-eqz p0, :cond_0

    const-wide/16 v0, 0x0

    return-wide v0

    .line 13
    :cond_0
    invoke-interface {v0}, Les/e50;->getLength()J

    move-result-wide v0

    return-wide v0

    .line 14
    :cond_1
    new-instance v0, Ljava/io/FileNotFoundException;

    invoke-direct {v0, p0}, Ljava/io/FileNotFoundException;-><init>(Ljava/lang/String;)V

    throw v0
    :try_end_0
    .catch Ljava/io/FileNotFoundException; {:try_start_0 .. :try_end_0} :catch_1
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    move-exception p0

    .line 15
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0

    :catch_1
    move-exception p0

    .line 16
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
.end method

.method public static e()Z
    .locals 13

    .line 1
    invoke-static {}, Lcom/estrongs/fs/impl/usb/f;->m()[Lcom/estrongs/fs/impl/usb/f;

    move-result-object v0

    .line 2
    sget-object v1, Lcom/estrongs/fs/impl/usb/e;->c:Ljava/lang/Object;

    monitor-enter v1

    .line 3
    :try_start_0
    sget-object v2, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    const/4 v3, 0x1

    if-eqz v2, :cond_5

    if-eqz v0, :cond_5

    array-length v2, v0

    sget-object v4, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    array-length v4, v4

    if-eq v2, v4, :cond_0

    goto :goto_2

    .line 4
    :cond_0
    array-length v2, v0

    const/4 v4, 0x0

    const/4 v5, 0x0

    :goto_0
    if-ge v5, v2, :cond_4

    aget-object v6, v0, v5

    .line 5
    sget-object v7, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    array-length v8, v7

    const/4 v9, 0x0

    const/4 v10, 0x0

    :goto_1
    if-ge v9, v8, :cond_2

    aget-object v11, v7, v9

    .line 6
    invoke-virtual {v6}, Lcom/estrongs/fs/impl/usb/f;->b()Ljava/lang/String;

    move-result-object v12

    invoke-virtual {v11}, Lcom/estrongs/fs/impl/usb/f;->b()Ljava/lang/String;

    move-result-object v11

    invoke-virtual {v12, v11}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v11

    if-eqz v11, :cond_1

    const/4 v10, 0x1

    :cond_1
    add-int/lit8 v9, v9, 0x1

    goto :goto_1

    :cond_2
    if-nez v10, :cond_3

    .line 7
    monitor-exit v1

    return v3

    :cond_3
    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    .line 8
    :cond_4
    monitor-exit v1

    return v4

    .line 9
    :cond_5
    :goto_2
    monitor-exit v1

    return v3

    :catchall_0
    move-exception v0

    .line 10
    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_4

    :goto_3
    throw v0

    :goto_4
    goto :goto_3
.end method

.method public static f(Ljava/lang/String;)Lcom/estrongs/fs/impl/usb/c;
    .locals 3

    const/4 v0, 0x0

    .line 9
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object v1

    if-eqz v1, :cond_0

    .line 10
    new-instance v2, Lcom/estrongs/fs/impl/usb/c;

    invoke-direct {v2, v1, p0}, Lcom/estrongs/fs/impl/usb/c;-><init>(Les/e50;Ljava/lang/String;)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    return-object v2

    :cond_0
    return-object v0

    :catchall_0
    move-exception p0

    .line 11
    invoke-virtual {p0}, Ljava/lang/Throwable;->printStackTrace()V

    return-object v0
.end method

.method public static f()[Lcom/estrongs/fs/impl/usb/f;
    .locals 5

    .line 1
    sget-object v0, Lcom/estrongs/fs/impl/usb/e;->c:Ljava/lang/Object;

    monitor-enter v0

    .line 2
    :try_start_0
    sget-object v1, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    if-eqz v1, :cond_0

    .line 3
    sget-object v1, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    array-length v2, v1

    const/4 v3, 0x0

    :goto_0
    if-ge v3, v2, :cond_0

    aget-object v4, v1, v3
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 4
    :try_start_1
    invoke-virtual {v4}, Lcom/estrongs/fs/impl/usb/f;->a()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_1

    :catch_0
    move-exception v4

    .line 5
    :try_start_2
    invoke-virtual {v4}, Ljava/lang/Exception;->printStackTrace()V

    :goto_1
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    .line 6
    :cond_0
    invoke-static {}, Lcom/estrongs/fs/impl/usb/f;->m()[Lcom/estrongs/fs/impl/usb/f;

    move-result-object v1

    sput-object v1, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    .line 7
    monitor-exit v0

    return-object v1

    :catchall_0
    move-exception v1

    .line 8
    monitor-exit v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_3

    :goto_2
    throw v1

    :goto_3
    goto :goto_2
.end method

.method public static g(Ljava/lang/String;)Ljava/io/OutputStream;
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const-wide/16 v0, 0x0

    .line 1
    invoke-static {p0, v0, v1}, Lcom/estrongs/fs/impl/usb/e;->b(Ljava/lang/String;J)Ljava/io/OutputStream;

    move-result-object p0

    return-object p0
.end method

.method private static h(Ljava/lang/String;)Les/h60;
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/impl/usb/UsbFsException;
        }
    .end annotation

    .line 1
    sget-object v0, Lcom/estrongs/fs/impl/usb/e;->c:Ljava/lang/Object;

    monitor-enter v0

    const/4 v1, 0x0

    if-eqz p0, :cond_a

    :try_start_0
    const-string v2, "usb://"

    .line 2
    invoke-virtual {p0, v2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_a

    sget-object v2, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    if-nez v2, :cond_0

    goto/16 :goto_3

    :cond_0
    const/4 v2, 0x6

    .line 3
    invoke-virtual {p0, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p0

    const-string v2, "/"

    .line 4
    invoke-virtual {p0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v2

    .line 5
    array-length v3, v2

    const/4 v4, 0x1

    if-ge v3, v4, :cond_1

    .line 6
    monitor-exit v0

    return-object v1

    :cond_1
    const/4 v3, 0x0

    .line 7
    aget-object v5, v2, v3

    const/4 v6, 0x0

    .line 8
    :goto_0
    sget-object v7, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    array-length v7, v7

    if-ge v6, v7, :cond_3

    .line 9
    sget-object v7, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    aget-object v7, v7, v6

    invoke-virtual {v7}, Lcom/estrongs/fs/impl/usb/f;->b()Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v7, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_2

    .line 10
    sget-object v5, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    aget-object v5, v5, v6

    goto :goto_1

    :cond_2
    add-int/lit8 v6, v6, 0x1

    goto :goto_0

    :cond_3
    move-object v5, v1

    :goto_1
    if-nez v5, :cond_4

    .line 11
    monitor-exit v0

    return-object v1

    .line 12
    :cond_4
    invoke-virtual {v5}, Lcom/estrongs/fs/impl/usb/f;->d()Ljava/util/List;

    move-result-object v5

    .line 13
    invoke-interface {v5}, Ljava/util/List;->size()I

    move-result v6

    if-ne v6, v4, :cond_5

    .line 14
    invoke-interface {v5, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Les/h60;

    goto :goto_2

    .line 15
    :cond_5
    array-length v3, v2

    const/4 v6, 0x2

    if-ge v3, v6, :cond_6

    .line 16
    monitor-exit v0

    return-object v1

    .line 17
    :cond_6
    aget-object v2, v2, v4

    .line 18
    invoke-interface {v5}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v3

    :cond_7
    invoke-interface {v3}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_8

    invoke-interface {v3}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Les/h60;

    .line 19
    invoke-virtual {v4}, Les/h60;->e()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v2, v5}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_7

    move-object v2, v4

    goto :goto_2

    :cond_8
    move-object v2, v1

    :goto_2
    if-nez v2, :cond_9

    .line 20
    sget-object v2, Lcom/estrongs/fs/impl/usb/e;->a:Ljava/lang/String;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "getFile file failed to get partion "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-static {v2, p0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 21
    monitor-exit v0

    return-object v1

    .line 22
    :cond_9
    monitor-exit v0

    return-object v2

    .line 23
    :cond_a
    :goto_3
    monitor-exit v0

    return-object v1

    :catchall_0
    move-exception p0

    .line 24
    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_5

    :goto_4
    throw p0

    :goto_5
    goto :goto_4
.end method

.method public static i(Ljava/lang/String;)[J
    .locals 4
    .annotation build Landroidx/annotation/NonNull;
    .end annotation

    .annotation build Landroidx/annotation/Size;
        value = 0x2L
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/impl/usb/UsbFsException;
        }
    .end annotation

    .line 1
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->h(Ljava/lang/String;)Les/h60;

    move-result-object p0

    const/4 v0, 0x2

    if-nez p0, :cond_0

    new-array p0, v0, [J

    .line 2
    fill-array-data p0, :array_0

    return-object p0

    :cond_0
    new-array v0, v0, [J

    const/4 v1, 0x0

    .line 3
    invoke-virtual {p0}, Les/h60;->c()J

    move-result-wide v2

    aput-wide v2, v0, v1

    const/4 v1, 0x1

    invoke-virtual {p0}, Les/h60;->d()J

    move-result-wide v2

    aput-wide v2, v0, v1

    return-object v0

    :array_0
    .array-data 8
        0x0
        0x0
    .end array-data
.end method

.method public static j(Ljava/lang/String;)Z
    .locals 3

    const/4 v0, 0x0

    if-eqz p0, :cond_3

    const-string v1, "usb://"

    .line 1
    invoke-virtual {p0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_3

    sget-object v1, Lcom/estrongs/fs/impl/usb/e;->b:[Lcom/estrongs/fs/impl/usb/f;

    if-nez v1, :cond_0

    goto :goto_1

    :cond_0
    const/4 v1, 0x6

    .line 2
    invoke-virtual {p0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p0

    const-string v1, "/"

    .line 3
    invoke-virtual {p0, v1}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v1

    const/4 v2, 0x1

    if-ltz v1, :cond_2

    .line 4
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result p0

    sub-int/2addr p0, v2

    if-ne v1, p0, :cond_1

    goto :goto_0

    :cond_1
    return v0

    :cond_2
    :goto_0
    return v2

    :cond_3
    :goto_1
    return v0
.end method

.method public static k(Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object p0

    if-eqz p0, :cond_0

    .line 2
    invoke-interface {p0}, Les/e50;->w()Z

    move-result p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz p0, :cond_0

    const/4 p0, 0x1

    return p0

    :cond_0
    const/4 p0, 0x0

    return p0

    :catchall_0
    move-exception p0

    .line 3
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
.end method

.method public static l(Ljava/lang/String;)Z
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object v0

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    return v1

    .line 2
    :cond_0
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x0

    if-nez v2, :cond_1

    return v3

    :cond_1
    :goto_0
    if-eqz v2, :cond_3

    .line 3
    invoke-static {v2}, Lcom/estrongs/fs/impl/usb/e;->c(Ljava/lang/String;)Les/e50;

    move-result-object v0

    if-eqz v0, :cond_2

    goto :goto_1

    .line 4
    :cond_2
    invoke-static {v2}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    goto :goto_0

    :cond_3
    :goto_1
    if-nez v0, :cond_4

    .line 5
    sget-object v0, Lcom/estrongs/fs/impl/usb/e;->a:Ljava/lang/String;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Failed to get the path "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    invoke-static {v0, p0}, Lcom/estrongs/android/util/n;->b(Ljava/lang/String;Ljava/lang/String;)V

    return v3

    .line 6
    :cond_4
    invoke-virtual {v2}, Ljava/lang/String;->length()I

    move-result v2

    invoke-virtual {p0, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object p0

    const-string v2, "/"

    .line 7
    invoke-virtual {p0, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p0

    .line 8
    array-length v2, p0

    :goto_2
    if-ge v3, v2, :cond_5

    aget-object v4, p0, v3

    .line 9
    invoke-interface {v0, v4}, Les/e50;->createDirectory(Ljava/lang/String;)Les/e50;

    move-result-object v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    add-int/lit8 v3, v3, 0x1

    goto :goto_2

    :cond_5
    return v1

    :catch_0
    move-exception p0

    .line 10
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    goto :goto_4

    :goto_3
    throw v0

    :goto_4
    goto :goto_3
.end method
